// 对外暴露路由(常量路由)
export const constantRoute = [
  {
    path: '/',
    name: 'home',
    component: () => import('../view/home/index.vue'),
    meta: {
      title: '主界面'
    }
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('../view/login/index.vue'),
    meta: {
      title: '登录页面'
    }
  },
  {
    path: '/404',
    name: '404',
    component: () => import('../view/error/404.vue'),
    meta: {
      title: '404界面'
    }
  },
  {
    path: '/:catchAll(.*)', // 通配符路由，捕获所有未匹配的路由
    redirect: '/404' // 重定向到404页面
  }
]
